package com.product.service;

import com.product.entity.Product;
import com.baomidou.mybatisplus.extension.service.IService;
import com.product.to.AddProductTo;
import com.product.to.UpdateProductTo;
import com.product.utils.PageUtils;

import java.util.List;


public interface IProductService extends IService<Product> {

    PageUtils getAllProduct(Integer size, Integer current, String productName,Integer productId, Integer timeOrderBy);

    void deleteProducts(List<Integer> productIds);

    void deleteProduct(Integer productId);

    void addProduct(AddProductTo product);

    void updateProduct(UpdateProductTo product);
}
